# Assume the source tree is where the running kernel was built
# You should set KERNEL_SRC_BUILD in the environment if it's elsewhere
LINUX_SRC = /lib/modules/2.6.32-16-generic/build	#Ubuntu 10.04
# LINUX_SRC = /lib/modules/2.6.31-21-generic/build

MODULE=lcpd_scope_driver

modules:
	make -C $(LINUX_SRC) SUBDIRS=$(shell pwd) modules

modules_install:
	make -C $(LINUX_SRC) INSTALL_MOD_PATH=/carme/rootfs INSTALL_MOD_DIR=kernel/drivers/carme SUBDIRS=$(shell pwd) modules_install

clean:
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.symvers


# called from kernel build system: just declare what our modules are
obj-m := $(MODULE).o

